class Feed::OrderItemCreatedAndOrderMade < Feed
  
  validates :order_id,
    :order_item_id,
    :presence => true  
    
  def code
    ActiveSupport::StringInquirer.new('order_made')
  end
  
  def short_desc
    "顾客于#{order.ordered_on}在#{order.dept.name}<b>厂家订做</b>#{order_item.ordered_count}件"
  end
  
  def remark
    order_item.remark
  end
end